// Copyright 2011 Dave Ruest.  All rights reserved.

/**
 * @fileoverview Clover adds collision meta data specific a "clover" stage, i.e.
 * a stage using the clover.png file for background art. This may also be the place
 * to generate mobile hazards, we will see. Basically the idea is to keep the meta data
 * for backgrounds in their own file so the metadata is as interchangeable as the
 * background itself.
 * 
 * Depends on Game.js, ImageGrid.js, Background.js
 * 
 * @author Dave Ruest dave.ruest@gmail.com
 */

/**
 * Clover constructor. 
 */
function Clover(game, maxColumns) {
	var src = "https://dave-ruest-honeybee.googlecode.com/git/dave-ruest-honeybee/clover.png";
	var image = game.getImage(src);
	var images = new ImageGrid(game.graphics, image, 72, 3, 6);
	var stage = new Stage(game, images, maxColumns);
	
	stage.stations = new Array();
	
	// TODO define constants
	stage.stations.push(new Station("pesticide", 1, 1, 38, 38)); // 73, 71
	stage.stations.push(new Station("pesticide", 1, 2, 32, 20)); // 117, 83
	stage.stations.push(new Station("pesticide", 1, 3, 32, 30)); // 165, 76
	stage.stations.push(new Station("pesticide", 1, 4, 32, 44)); // 213, 67
	
	stage.stations.push(new Station("flower", 2, 1, 35, 27)); // 71, 30
	stage.stations.push(new Station("flower", 2, 2, 32, 15)); // 117, 38
	stage.stations.push(new Station("flower", 2, 3, 30, 20)); // 164, 35
	stage.stations.push(new Station("flower", 2, 4, 29, 36)); // 211, 24
	
	return stage;
}